<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 指令：vue提供的一些特殊的属性v-开头 -->
        <h1 
            v-bind:title="tit" 
            v-text="msg"
            v-on:click="showData"
            >
        </h1>
    </div>

    <script src="https://unpkg.com/vue@next"></script>
    <script>
       
        Vue.createApp({
            //选项api（option api）
            data(){
                return{
                    msg :"hello",
                    tit:"悬浮title"
                }
            },
            methods:{
                showData(){
                    alert("hello vue3")
                }
            }
        }).mount("#app")
    </script>
</body>
</html>